<?
define('IN_LC', true);
define('MM_ID', 0);

include_once('../validate.php');

if(isset($_GET['id']) && is_numeric($_GET['id']))
{
	$q = "Select * FROM " . CATAGORIES_TABLE . " WHERE c_id = " . $_GET['id'];
	$result = $db->sql_query($q);
	if($cat = $db->sql_fetchrow($result)) 
	{
		$result = $db->sql_query($cat['c_selectquery']);
		while($item = $db->sql_fetchrow($result)) 
		{
			echo '<option value="' . $item[$cat['c_selectid']] . '">' . 
								$item[$cat['c_selectname']] . '</option>';
		}
	}		
}

?>